package com.hbsx.why.http;


import com.hbsx.why.model.BaseListModel;
import com.hbsx.why.model.BaseMessageModel;
import com.hbsx.why.model.bean.WeatherBean;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by liub on 2017/6/26 15:07.
 */

public interface HttpSerives {
    @GET("XyShop.do?method=SpinerWeather")
    Call<String> getWeather();

    @GET("XyShop.do?")
    Call<BaseListModel<WeatherBean>> getWeatherParams(@Query("method") String method);


    @GET("XyShop.do?method=SpinerWeather")
    Call<String> checkApkVersion();

    @GET("XyShop.do?method=SpinerWeather")
    Call<String> downloadApk();

    @Multipart
    @POST("XyShop.do?method=uploadIMG")
    Call<String> fileupload(@Query("userid") int userid,@Part("file_fmimg") MultipartBody.Part file_fmimg);

    //@Multipart
    @POST("XyShop.do?method=uploadIMG")
    Call<BaseMessageModel> fileuploadBody(@Body RequestBody body);
}
